package com.wjh.anyview.entity.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.util.Date;

/**
 * @author wjh
 */
public class BasePojo {
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;
    @TableLogic
    private byte delTag;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public byte getDelTag() {
        return delTag;
    }

    public void setDelTag(byte delTag) {
        this.delTag = delTag;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                ", delTag=" + delTag +
                '}';
    }
}
